blob: 27ac72d98fcf8cf2cd0c0ab236e7646ecff7499d [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-cvsexportcommit(1)
2======================
3
4NAME
5----
6git-cvsexportcommit - Export a commit to a CVS checkout
7
8
9SYNOPSIS
10--------
Junio C Hamano51c2ab02006-07-09 20:38:5411'git-cvsexportcommit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
Junio C Hamano1a4e8412005-12-27 08:17:2312
13
14DESCRIPTION
15-----------
16Exports a commit from GIT to a CVS checkout, making it easier
17to merge patches from a git repository into a CVS repository.
18
19Execute it from the root of the CVS working copy. GIT_DIR must be defined.
Junio C Hamano2e552442006-01-30 07:39:3020See examples below.
Junio C Hamano1a4e8412005-12-27 08:17:2321
22It does its best to do the safe thing, it will check that the files are
23unchanged and up to date in the CVS checkout, and it will not autocommit
24by default.
25
26Supports file additions, removals, and commits that affect binary files.
27
28If the commit is a merge commit, you must tell git-cvsapplycommit what parent
29should the changeset be done against.
30
31OPTIONS
32-------
33
34-c::
35Commit automatically if the patch applied cleanly. It will not
36commit if any hunks fail to apply or there were other problems.
37
38-p::
39Be pedantic (paranoid) when applying patches. Invokes patch with
40--fuzz=0
41
Junio C Hamano0fd4dbd2006-05-14 09:22:5242-f::
43Force the merge even if the files are not up to date.
44
45-m::
46Prepend the commit message with the provided prefix.
47Useful for patch series and the like.
48
Junio C Hamano1a4e8412005-12-27 08:17:2349-v::
50Verbose.
51
Junio C Hamano2e552442006-01-30 07:39:3052EXAMPLES
53--------
54
55Merge one patch into CVS::
56+
57------------
58$ export GIT_DIR=~/project/.git
59$ cd ~/project_cvs_checkout
60$ git-cvsexportcommit -v <commit-sha1>
61$ cvs commit -F .mgs <files>
62------------
63
64Merge pending patches into CVS automatically -- only if you really know what you are doing ::
65+
66------------
67$ export GIT_DIR=~/project/.git
68$ cd ~/project_cvs_checkout
69$ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v
70------------
71
Junio C Hamano1a4e8412005-12-27 08:17:2372Author
73------
74Written by Martin Langhoff <martin@catalyst.net.nz>
75
76Documentation
77--------------
78Documentation by Martin Langhoff <martin@catalyst.net.nz>
79
80GIT
81---
82Part of the gitlink:git[7] suite
83